﻿using System.Xml;

namespace RunCamlSample.QueryBuilders
{
    public class ProccessContext
    {
        public ProccessContext()
        {
        }

        public ProccessContext(XmlNode node)
        {
            CurrentNode = node;
        }

        public XmlNode CurrentNode { get; set; }

        public string GUID
        {
            get
            {
                return CurrentNode.Attributes["ID"].Value;
            }
        }

        public string WebId
        {
            get
            {
                return CurrentNode.Attributes["WebId"].Value;
            }
        }
    }
}